<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // var a = 1;
      // console.log(typeof a);
      // var xd = new Number(2);
      // console.log(xd);
      // var a = 3,
      //   b = 3.4;
      // console.log(Number.isInteger(a));
      // console.log(Number.isInteger(b));
      // var xd = 19.214356;
      // console.log(xd.toFixed(4));
      // var a = '123';
      // var b = 'asda';
      // var c = 'null';
      // console.log(Number(b));
      // console.log(isNaN(b));
      // if (c !== null && c !== '') {
      //   isNaN();
      // }
      var xd = 0.1 + 0.2;
      console.log(xd.toFixed(1));
    </script>
  </body>
</html>
